pub fn odd_fibnacci_sum(threshold: u32) -> u32 {
    let (mut first, mut second) = (1, 1);
    let mut sum = 0;
    if threshold >= 2 {
        sum += 1;
    }
    while second <= threshold {
        if second & 1 == 1 {
            sum += second;
        }
        let temp = first + second;
        first = second;
        second = temp;
    }
    sum
}
